interface MenuItem {
    path: string;
    roles?:string[];
    title: string;
    children?: MenuItem[]
}

type Menus = MenuItem[]
/**
 * 权限规则：如果数组对象里面没有roles字段，则表示，所有角色都可以看到
 * 如果有roles字段，则只有该字段中包含的角色才可以看到
 * 
 * 
 */
export const menus: Menus = [
    {
        path:'/home/echart',
        title:'首页'
    },
    {
        path: "accounts-management",
        title: "组织管理",
        children: [
            { path: "/home/userManage", title: "用户管理" },
            { path: "/home/roleManage", title: "角色管理" },
            { path: "/home/menuManage", title: "菜单管理" },
        ]
    },
    {
        path: "range-manangement",
        title: "靶场管理",
        children: [
            { path: "/home/rangeList", title: "靶场列表" },
        
        ]
    },
 
];